﻿ 

function InsertStep() {

    if (document.getElementById("modelID") != null) {
     
        var stepid = window.frames("wflist").laststepid;
        var strRtn;
        if (stepid != null && stepid != undefined) {
            strRtn = openMyDlg("人员设置", "/Workflow/WFDefined_StepWiz.aspx", "modelID=" + escape(document.getElementById("modelID").value) + "&ActivityType=" + escape(stepid), "", 640, 480);

            
            //opener.Query(document.getElementById("__oid").value);
            window.frames("wflist").__doPostBack("", "");
        }
        else {
            alert("请选择步骤!");
        }
    }
    else {
        alert("请先保存流程!");
    }
}